/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package lineage.ui.function.window.main;

import java.awt.Color;

import lineage.ui.customize.L1CustomizeTextArea;

/**
 * 带滚动条的多行文本框-用于显示系统信息.
 * 
 * @version 2014年2月13日下午4:15:54
 * @author jrwz
 */
public final class L1BoxSystemMessage extends L1CustomizeTextArea {
    private static final long serialVersionUID = 3029945905298791838L;

    /**
     * 静态初始化器，由JVM来保证线程安全.
     */
    private static class Holder {
        static L1BoxSystemMessage instance = new L1BoxSystemMessage();
    }

    /**
     * 取得该类的实例.
     */
    public static L1BoxSystemMessage getInstance() {
        return Holder.instance;
    }

    private L1BoxSystemMessage() {
        // 要设置的部分
        name = "系统信息框";
        _x = 0;
        _y = 0;
        _width = 799;
        _height = 574;
        presetText = name;
        // end

        setForeground(Color.WHITE); // 字体颜色(RGB白)

        init(true);
    }

}
